package com.example.fms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.fms.utils.UserVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("role")
public class Role extends UserVo {
    //id
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    @TableField("role_name")
    private String roleName;

    @TableField("status")
    private String status;
    @TableField("role_desc")
    private String  roleDesc;
}
